package com.eternal.util.user.entity.enums;

import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Eternal
 * @Title: SexEnum
 * @ProjectName notest
 * @Description: TODO
 * @date 2018/9/16 13:11
 */

public enum SexEnum implements IEnum {
    UNKNOWN("0", "未知"),
    MAN("1", "男"),
    WOMAN("2", "女");

    private String code;
    private String describe;

    SexEnum(String code, String describe) {
        this.code = code;
        this.describe = describe;
    }

    @Override
    public Serializable getValue() {
        return this.code;
    }

    @JsonValue
    public String getDescribe() {
        return describe;
    }
}
